package com.zhanghe.study.design_pattern.chain_pattern;

/**
 * @author zh
 * @date 2022/10/22 16:12
 */
public class ConcreteHandler extends Handler{
    @Override
    public void handleRequest() {

        // 处理自己的职责，处理完之后继续传递
        System.out.println("aaa");

        if(successor != null){
            // 继续传递
            successor.handleRequest();
        }

    }
}
